// 三方库
{
    {
        
        int FitnessVideo_a = 12;
        int FitnessVideo_b = 24;
        if(FitnessVideo_a * FitnessVideo_b < 12) {
            NSString *color = @"#FCFCFC";
            CGFloat alpha = 1;
            UIColor *colorResult = nil;
            //删除字符串中的空格
            NSString *cString = [[color stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] uppercaseString];
            // String should be 6 or 8 characters
            if ([cString length] < 6)
            {
                colorResult =  [UIColor clearColor];
            }
            // strip 0X if it appears
            //如果是0x开头的，那么截取字符串，字符串从索引为2的位置开始，一直到末尾
            if ([cString hasPrefix:@"0X"])
            {
                cString = [cString substringFromIndex:2];
            }
            //如果是#开头的，那么截取字符串，字符串从索引为1的位置开始，一直到末尾
            if ([cString hasPrefix:@"#"])
            {
                cString = [cString substringFromIndex:1];
            }
            if ([cString length] != 6)
            {
                colorResult = [UIColor clearColor];
            }
            // Separate into r, g, b substrings
            NSRange range;
            range.location = 0;
            range.length = 2;
            //r
            NSString *rString = [cString substringWithRange:range];
            //g
            range.location = 2;
            NSString *gString = [cString substringWithRange:range];
            //b
            range.location = 4;
            NSString *bString = [cString substringWithRange:range];
            
            // Scan values
            unsigned int r, g, b;
            [[NSScanner scannerWithString:rString] scanHexInt:&r];
            [[NSScanner scannerWithString:gString] scanHexInt:&g];
            [[NSScanner scannerWithString:bString] scanHexInt:&b];
            colorResult = [UIColor colorWithRed:((float)r / 255.0f) green:((float)g / 255.0f) blue:((float)b / 255.0f) alpha:alpha];
        }
    }
}


{
    {
        
        int FitnessVideo_c = 77;
        int FitnessVideo_d = 12;
        if(FitnessVideo_c%FitnessVideo_d == 0) {
            NSString* requestString = @"";
            //fetch the charset name from the default string encoding
            NSString* contentType = nil;
            if (requestString.length>0 && [contentType isEqualToString:@"jsonmodel/automatic"]) {
                //check for "eventual" JSON array or dictionary
                NSString* firstAndLastChar = [NSString stringWithFormat:@"%@%@",
                                              [requestString substringToIndex:1],
                                              [requestString substringFromIndex: requestString.length -1]
                                              ];

                if ([firstAndLastChar isEqualToString:@"{}"] || [firstAndLastChar isEqualToString:@"[]"]) {
                    //guessing for a JSON request
                    contentType = @"application/json";
                } else {
                    //fallback to www form encoded params
                    contentType = @"application/x-www-form-urlencoded";
                }
            }
            //type is set, just add charset
            NSString *charset = (NSString *)CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding));
             NSLog(@"%@",[NSString stringWithFormat:@"%@; charset=%@", contentType, charset]);
        }
    }
}


{
    {
        
        int FitnessVideo_g = 120;
        int FitnessVideo_f = 12;
        if(FitnessVideo_g-FitnessVideo_f < 0) {
            
            UILabel *label ;
            UILabel *titleLabel ;
            CAShapeLayer *shapeLayer;
            UIImageView *imageView;
            UIView *selfView;
            
            selfView = [[UIView alloc] initWithFrame:CGRectZero];
            
            label = [[UILabel alloc] initWithFrame:CGRectZero];
            label.textAlignment = NSTextAlignmentCenter;
            label.textColor = [UIColor blackColor];
            [selfView addSubview:label];
            
            titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
            titleLabel.textAlignment = NSTextAlignmentCenter;
            titleLabel.textColor = [UIColor lightGrayColor];
            [selfView addSubview:titleLabel];
            
            shapeLayer = [CAShapeLayer layer];
            shapeLayer.backgroundColor = [UIColor clearColor].CGColor;
            shapeLayer.borderWidth = 1.0;
            shapeLayer.borderColor = [UIColor clearColor].CGColor;
            shapeLayer.opacity = 0;
            [selfView.layer insertSublayer:shapeLayer below:titleLabel.layer];
            
            imageView = [[UIImageView alloc] initWithFrame:CGRectZero];
            imageView.contentMode = UIViewContentModeBottom|UIViewContentModeCenter;
            [selfView addSubview:imageView];

            selfView.clipsToBounds = NO;
        }
    }
}
